import { inject } from 'vue';
import { configProvideKey } from './context';
import { defaultProvide } from './default';

export default () => {
  const configProvide = inject<typeof defaultProvide>(
    configProvideKey,
    defaultProvide,
  );
  return {
    configProvide,
  };
};
